#ifndef COMMONDEFS_H
#define COMMONDEFS_H


#define MIN(x,y) ((x)<(y))?x:y
/* Make sure we have included stdlib.h to use malloc */
#include <stdlib.h> 
#define NEW(type) (calloc(1,sizeof(type)))

#endif /* COMMONDEFS_H */
